package com.ksd.system.domain;

import com.ksd.common.annotation.Excel;
import com.ksd.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 频道管理对象 sys_channel
 * 
 * @author y.wu
 * @date 2025-01-08
 */
public class SysChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String table_one = "sys_channel_one";
    public static final String table_twice = "sys_channel_twice";
    /** 编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;
    private String logo;

    /** 类型 */
    @Excel(name = "类型")
    private Long type;
    private String ip;
    private String port;
    private String playUrl;
    private Long number;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long deliveryType;

    /** 频率 */
    @Excel(name = "频率")
    private Long freq;

    /** 符号率 */
    @Excel(name = "符号率")
    private Long symbolRate;
    private String status1; //0默认状态1选中状态
    private String status2; //0默认状态1选中状态
    private String channelStatus; //0默认开启状态1关闭状态

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    /** 极化方式 */
    @Excel(name = "极化方式")
    private Long polarization;

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long onid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long tsid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long svid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long pmtpid;

    private Long boardId;

    public String getStatus1() {
        return status1;
    }

    public void setStatus1(String status1) {
        this.status1 = status1;
    }

    public String getChannelStatus() {
        return channelStatus;
    }

    public void setChannelStatus(String channelStatus) {
        this.channelStatus = channelStatus;
    }

    public String getStatus2() {
        return status2;
    }

    public void setStatus2(String status2) {
        this.status2 = status2;
    }

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String audiopid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String audiotype;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String videopid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String videotype;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String groupids;

    private String boardStr;

    public String getBoardStr() {
        return boardStr;
    }

    public void setBoardStr(String boardStr) {
        this.boardStr = boardStr;
    }

    public Long getBoardId() {
        return boardId;
    }

    public void setBoardId(Long boardId) {
        this.boardId = boardId;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setDeliveryType(Long deliveryType) 
    {
        this.deliveryType = deliveryType;
    }

    public Long getDeliveryType() 
    {
        return deliveryType;
    }
    public void setFreq(Long freq) 
    {
        this.freq = freq;
    }

    public Long getFreq() 
    {
        return freq;
    }
    public void setSymbolRate(Long symbolRate) 
    {
        this.symbolRate = symbolRate;
    }

    public Long getSymbolRate() 
    {
        return symbolRate;
    }
    public void setPolarization(Long polarization) 
    {
        this.polarization = polarization;
    }

    public Long getPolarization() 
    {
        return polarization;
    }
    public void setOnid(Long onid) 
    {
        this.onid = onid;
    }

    public Long getOnid() 
    {
        return onid;
    }
    public void setTsid(Long tsid) 
    {
        this.tsid = tsid;
    }

    public Long getTsid() 
    {
        return tsid;
    }
    public void setSvid(Long svid) 
    {
        this.svid = svid;
    }

    public Long getSvid() 
    {
        return svid;
    }
    public void setPmtpid(Long pmtpid) 
    {
        this.pmtpid = pmtpid;
    }

    public Long getPmtpid() 
    {
        return pmtpid;
    }
    public void setAudiopid(String audiopid) 
    {
        this.audiopid = audiopid;
    }

    public String getAudiopid() 
    {
        return audiopid;
    }
    public void setAudiotype(String audiotype) 
    {
        this.audiotype = audiotype;
    }

    public String getAudiotype() 
    {
        return audiotype;
    }
    public void setVideopid(String videopid) 
    {
        this.videopid = videopid;
    }

    public String getVideopid() 
    {
        return videopid;
    }
    public void setVideotype(String videotype) 
    {
        this.videotype = videotype;
    }

    public String getVideotype() 
    {
        return videotype;
    }
    public void setGroupids(String groupids) 
    {
        this.groupids = groupids;
    }

    public String getGroupids() 
    {
        return groupids;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("deliveryType", getDeliveryType())
            .append("freq", getFreq())
            .append("symbolRate", getSymbolRate())
            .append("polarization", getPolarization())
            .append("onid", getOnid())
            .append("tsid", getTsid())
            .append("svid", getSvid())
            .append("pmtpid", getPmtpid())
            .append("audiopid", getAudiopid())
            .append("audiotype", getAudiotype())
            .append("videopid", getVideopid())
            .append("videotype", getVideotype())
            .append("groupids", getGroupids())
                .append("boardId", getBoardId())
                .append("status1",getStatus1())
                .append("status2",getStatus2())
            .toString();
    }

    public SysChannelOne setOneObjec(SysChannel sysChannel){
        SysChannelOne sysChannelObject = new SysChannelOne();
        sysChannelObject.setId(sysChannel.getId());
        sysChannelObject.setName(sysChannel.getName());
        sysChannelObject.setType(sysChannel.getType());
        sysChannelObject.setDeliveryType(sysChannel.getDeliveryType());
        sysChannelObject.setFreq(sysChannel.getFreq());
        sysChannelObject.setSymbolRate(sysChannel.getSymbolRate());
        sysChannelObject.setPolarization(sysChannel.getPolarization());
        sysChannelObject.setOnid(sysChannel.getOnid());
        sysChannelObject.setTsid(sysChannel.getTsid());
        sysChannelObject.setSvid(sysChannel.getSvid());
        sysChannelObject.setPmtpid(sysChannel.getPmtpid());
        sysChannelObject.setAudiopid(sysChannel.getAudiopid());
        sysChannelObject.setAudiotype(sysChannel.getAudiotype());
        sysChannelObject.setVideopid(sysChannel.getVideopid());
        sysChannelObject.setVideotype(sysChannel.getVideotype());
        sysChannelObject.setGroupids(sysChannel.getGroupids());
        sysChannelObject.setBoardId(sysChannel.getBoardId());
        sysChannelObject.setStatus1(sysChannel.getStatus1());
        sysChannelObject.setStatus2(sysChannel.getStatus2());
        sysChannelObject.setPort(sysChannel.getPort());
        sysChannelObject.setOnid(sysChannel.getOnid());
        sysChannelObject.setTsid(sysChannel.getTsid());
        sysChannelObject.setSvid(sysChannel.getSvid());
        sysChannelObject.setNumber(sysChannel.getNumber());
        sysChannelObject.setLogo(sysChannel.getLogo());
        sysChannelObject.setBoardStr(sysChannel.getBoardStr());
        sysChannelObject.setIp(sysChannel.getIp());
        sysChannelObject.setPort(sysChannel.getPort());
        return sysChannelObject;
    }

    public SysChannelTwice setTwiceObjec(SysChannel sysChannel){
        SysChannelTwice sysChannelObject = new SysChannelTwice();
        sysChannelObject.setId(sysChannel.getId());
        sysChannelObject.setName(sysChannel.getName());
        sysChannelObject.setType(sysChannel.getType());
        sysChannelObject.setDeliveryType(sysChannel.getDeliveryType());
        sysChannelObject.setFreq(sysChannel.getFreq());
        sysChannelObject.setSymbolRate(sysChannel.getSymbolRate());
        sysChannelObject.setPolarization(sysChannel.getPolarization());
        sysChannelObject.setOnid(sysChannel.getOnid());
        sysChannelObject.setTsid(sysChannel.getTsid());
        sysChannelObject.setSvid(sysChannel.getSvid());
        sysChannelObject.setPmtpid(sysChannel.getPmtpid());
        sysChannelObject.setAudiopid(sysChannel.getAudiopid());
        sysChannelObject.setAudiotype(sysChannel.getAudiotype());
        sysChannelObject.setVideopid(sysChannel.getVideopid());
        sysChannelObject.setVideotype(sysChannel.getVideotype());
        sysChannelObject.setGroupids(sysChannel.getGroupids());
        sysChannelObject.setBoardId(sysChannel.getBoardId());
        sysChannelObject.setStatus1(sysChannel.getStatus1());
        sysChannelObject.setStatus2(sysChannel.getStatus2());
        sysChannelObject.setPort(sysChannel.getPort());
        sysChannelObject.setOnid(sysChannel.getOnid());
        sysChannelObject.setTsid(sysChannel.getTsid());
        sysChannelObject.setSvid(sysChannel.getSvid());
        sysChannelObject.setNumber(sysChannel.getNumber());
        sysChannelObject.setLogo(sysChannel.getLogo());
        sysChannelObject.setBoardStr(sysChannel.getBoardStr());
        sysChannelObject.setIp(sysChannel.getIp());
        sysChannelObject.setPort(sysChannel.getPort());
        return sysChannelObject;
    }
}
